{template 'public/header'}
{template 'public/comhead'}
<link rel="stylesheet" type="text/css" href="../addons/zh_hkad/template/public/ygcsslist.css">
<style type="text/css">
    .yg5_key>div{float: left;line-height: 34px;}
    .store_td1{height: 45px;}
    .store_list_img{width: 60px;height: 60px;}
    .yg5_tabel{border-color: #e5e5e5;outline: 1px solid #e5e5e5;}
    .yg5_tr2>td{padding: 10px 15px;border: 1px solid #e5e5e5;text-align:center;}
    .yg5_tr1>th{
        border: 1px solid #e5e5e5;
        padding-left: 15px;
        background-color: #FAFAFA;
        font-weight: bold;
        text-align: center;
    }
    .yg5_btn{background-color: #EEEEEE;color: #333;border: 1px solid #E4E4E4;border-radius: 6px;width: 100px;height: 34px;}
    /*#frame-2{display: block;visibility: visible;}*/
</style>
<ul class="nav nav-tabs">
    <span class="ygxian"></span>
    <div class="ygdangq">当前位置:</div>    
    <li class="active"><a href="javascript:void(0)">活动列表</a></li>
    <!-- <li><a href="{php echo $this->createWebUrl('adduser')}">添加用户</a></li> -->
</ul>
<div class="main">
        <div class="panel panel-default">
            <div class="panel-body">
                <!--<div class="col-md-3">-->
                    <!-- <a class="btn btn-primary" href="javascript:location.reload()"><i class="fa fa-refresh"></i>刷新</a> -->
                    <!-- 批量部分 -->
                    <!--<button class="btn btn-default ygshanchu" id="allselect">批量删除</button>-->
                <!--</div>-->
                <form action="" method="get" class="col-md-4">
                    <input type="hidden" name="c" value="site" />
                    <input type="hidden" name="a" value="entry" />
                    <input type="hidden" name="m" value="zh_hkad" />
                    <input type="hidden" name="do" value="activelist" />
                    <div class="input-group" style="width: 300px">
                        <input type="text" name="keywords" class="form-control" placeholder="请输入名字\手机号">
                        <span class="input-group-btn">
                    <input type="submit" class="btn btn-default" style="padding: 7.5px 12px" name="submit" value="查找"/>
                </span>
                    </div>
                    <input type="hidden" name="token" value="{$_W['token']}"/>
                    <input type="hidden" name="type" value="all"/>
                </form>
                <!--<form class="col-lg-2" action="" method="POST">-->
                    <!--<div style="width: 100px">-->

                        <!--<input type="submit" class="btn btn-sm btn-success" name="export_submit" value="导出"/>-->
                        <!--<input type="hidden" name="token" value="{$_W['token']}"/>-->

                    <!--</div>-->
                <!--</form>-->


                <!-- 批量部分 -->
            </div>
        </div>
    <div class="panel panel-default">
        <div class="panel-heading">
            活动管理&nbsp;>&nbsp;活动列表
        </div>
        <div class="panel-body" style="padding: 0px 15px;">
            <div class="row">
                <table class="yg5_tabel col-md-12">
                    <tr class="yg5_tr1" style="height: 60px">                   
                        <th class="col-md-1">名字</th>                
                        <!-- <th class="col-md-1">头像</th>                -->
                        <!-- <th class="col-md-1">openid</th>               -->
                        <th class="col-md-1">电话</th>
                        <th class="col-md-1">户型</th>
                        <th class="col-md-1">风格</th>
                        <!-- <th class="col-md-1">图片</th> -->
                        <th class="col-md-1">面积</th>   
                        <th class="col-md-2">地址</th>           
                        <th class="col-md-1">状态</th>
                        <th class="col-md-1">创建时间</th>
                        <th class="col-md-1">操作</th>
                    </tr>
                    {loop $registers $row}
                    <tr class="yg5_tr2">
                        <td>{$row['name']}</td>
                        <!-- <td>{$row['avatar']}</td> -->
                        <td>{$row['phone']}</td>
                        <td>{$row['home']}</td>
                        <td>{$row['style']}</td>
                        <!-- <td><img style="width:30px;height:20px;" src="../attchment/{$row['img']}"></td> -->
                        <td>{$row['area']}</td>
                        <td>{$row['address']}{$row['detail_address']}</td>
                        {if $row['state']==1}
                            <td><a class="btn storegreen btn-xs">已付款</a></td> 
                            {else}
                            <td><a class="btn storeblue btn-xs">未付款</a></td>
                        {/if}
                        <td>{$row['create_time']}</td>
                        <td>
                               <!-- <a href="{php echo $this->createWebUrl('teacher',array('op'=>'tg','id'=>$row['id']));}"><button class="btn ygyouhui2 btn-xs">通过</button></a>
                               <a href="{php echo $this->createWebUrl('teacher',array('op'=>'jj','id'=>$row['id']));}"><button class="btn ygshouqian2 btn-xs">拒绝</button></a> -->
                            
                            <a href="{php echo $this->createWebUrl('activelistdetail', array('id' => $row['id']))}" class="storespan btn btn-xs">
                                <span class="fa">详情页</span>
                                <span class="bianji">详情页<span class="arrowdown"></span>
                                </span>
                            
                            </a>
                            <a href="javascript:void(0);" class="storespan btn btn-xs" data-toggle="modal" data-target="#myModal{$row['id']}">
                                <span class="fa fa-trash-o"></span>
                                <span class="bianji">删除<span class="arrowdown"></span>
                                </span>
                            </a>
                            <!-- <a class="btn btn-warning btn-xs" href="{php echo $this->createWebUrl('addad', array('id' => $row['id']))}" title="编辑">改</a>
                            &nbsp;&nbsp;<button type="button" class="btn btn-danger btn-xs" data-toggle="modal" data-target="#myModal{$row['id']}">删</button> -->
                        </td>
                    </tr>
                    <div class="modal fade" id="myModal{$row['id']}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
                      <div class="modal-dialog" role="document">
                        <div class="modal-content">
                          <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                            <h4 class="modal-title" id="myModalLabel" style="font-size: 20px;">提示</h4>
                        </div>
                        <div class="modal-body" style="font-size: 20px">
                            确定删除么？
                        </div>
                        <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                            <a href="{php echo $this->createWebUrl('activelist', array('op' => 'delete', 'id' => $row['id']))}" type="button" class="btn btn-info" >确定</a>
                        </div>
                    </div>
                </div>
            </div>
            
            
                    {/loop}
                </table>
            </div>
    </div>
    {$pager}
</div>
<script type="text/javascript">
    $(function(){
        $("#frame-3").show();
        $("#yframe-3").addClass("wyactive");
        // $("#frame-2").addClass("in");
    })
</script>